Skip to content

[ISSUE #3009] change MetricsHandler#get to try-resources #4800

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 21, 2024

Conversation

TT432
Copy link
Contributor

@TT432 TT432 commented Mar 21, 2024

Fixes #3009

Modifications

try-resources for httpExchange.getResponseBody() and PrintWriter (on catch).

Documentation

  • Does this pull request introduce a new feature? (no)
  • If yes, how is the feature documented? (not applicable)
  • If a feature is not applicable for documentation, explain why? (bug fix)
  • If a feature is not documented yet in this PR, please create a followup issue for adding the documentation (not applicable)

Copy link
Contributor

@github-actions github-actions bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Welcome to the Apache EventMesh community!!
This is your first PR in our project. We're very excited to have you onboard contributing. Your contributions are greatly appreciated!

Please make sure that the changes are covered by tests.
We will be here shortly.
Let us know if you need any help!

Want to get closer to the community?

WeChat Assistant WeChat Public Account Slack
Join Slack Chat

Mailing Lists:

Name Description Subscribe Unsubscribe Archive
Users User support and questions mailing list Subscribe Unsubscribe Mail Archives
Development Development related discussions Subscribe Unsubscribe Mail Archives
Commits All commits to repositories Subscribe Unsubscribe Mail Archives
Issues Issues or PRs comments and reviews Subscribe Unsubscribe Mail Archives

Copy link

codecov bot commented Mar 21, 2024

Codecov Report

Attention: Patch coverage is 0% with 57 lines in your changes are missing coverage. Please review.

Project coverage is 16.34%. Comparing base (87172a9) to head (3003149).

Files Patch % Lines
...ventmesh/runtime/admin/handler/MetricsHandler.java 0.00% 57 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff            @@
##             master    #4800   +/-   ##
=========================================
  Coverage     16.34%   16.34%           
  Complexity     1734     1734           
=========================================
  Files           856      856           
  Lines         31245    31240    -5     
  Branches       2698     2697    -1     
=========================================
  Hits           5106     5106           
+ Misses        25660    25655    -5     
  Partials        479      479           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@mxsm mxsm merged commit 1640985 into apache:master Mar 21, 2024
10 of 11 checks passed
xuhongjia pushed a commit to Deckers-Ohana/eventmesh that referenced this pull request Mar 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Enhancement] Method manually handles closing an auto-closeable resource [MetricsHandler]
3 participants